﻿using System;
using System.Collections.Generic;
using System.Text;
using DevScope.SharePoint.Utils.BulkDelete.Helpers.Caml.Enumerations;
using System.Globalization;
using System.Reflection;

namespace DevScope.SharePoint.Utils.BulkDelete.Helpers.Caml
{
    public static class CamlHelper
    {
        public static string CreateISO8601DateTimeFromSystemDateTime(DateTime date)
        {
            return string.Format(CultureInfo.InvariantCulture, date.ToString("yyyy-MM-ddTHH:mm:ssZ"), new object[0]);
        }

        public static bool IsNumeric(string s)
        {
            try
            {
                int.Parse(s);
            }
            catch
            {
                return false;
            }
            return true;
        }
    }
}
